<template>
  <view class="gi-sticky">
    <slot></slot>
  </view>
</template>

<script lang='ts' setup>

</script>

<style lang='scss' scoped>
// 顶部粘性类
.gi-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  // #ifdef H5
  top: 44px;
  // #endif
  z-index: 9;
  border-bottom: 1px solid $color-border;
}
</style>
